a = 2
while  a  <= 100 :
    flag = True
    b = 2
    while b < a :
        if a % b ==0 :
            flag = False
        b += 1
    if flag :
        print(a)
    a += 1